<script lang='ts' setup>
import TitleBar from '@/components/标题.vue'
import type { Phono } from '@/types';
import request from "@/assets/工具/网络请求"
import { onMounted, ref } from 'vue';
import { getPicture } from '@/assets/工具/工具类';
const phono = ref<Phono[]>([]);

onMounted(async() =>{
    try {
        const response = await request.doGet('/PersonalityTrackingServlet');
        phono.value = response.data;
        console.log(phono.value);
        
    }catch (error){
    }
})
</script>
<template>
    <div class="组件根元素">
        <TitleBar title="个性跟拍"/>
        <div class="Profile">
        <div class="Location" v-for="date  of phono " :key="date.id">
            <img :src="getPicture(date.photoUrl)" alt="">
            <p class="Text">{{ date.photoText }}</p>
        </div>
        <div id="PictureK">
            <div class="Picture"><p @click="$router.push('/ChargeSchedule')" style="text-align: center;"><img :src="getPicture('通用/谦.png')" alt="">收费标准</p></div>
        </div>
        <div class="ChargeSchedule">
                <div class="schedule">
                    <p><img :src="getPicture('通用/天.png')" alt="">半天</p>
                    
                </div>
                    <div class="schedule_bottom">
                        <p>精修12 底片全送</p>
                        <p>￥299.9</p>
                    </div>
                    
            </div>
            <div class="ChargeSchedule" style="padding-bottom: 120px;">
                <div class="schedule">
                    <p><img :src="getPicture('通用/天.png')" alt="">全天</p>
                    
                </div>
                    <div class="schedule_bottom">
                        <p>精修12 底片全送</p>
                        <p>￥499.9</p>
                    </div>
                    
            </div>
       
    </div> 
    </div>
    <div class="button">
            <div>立即咨询</div>
            <div>电话联系</div>
        </div>
</template>


<style scoped>
.组件根元素{
    background-color:rgba(255, 255, 255, 1) ;
}
.schedule p:nth-child(2){
    color: rgba(85, 85, 85, 1);
}
.schedule_bottom p {
    height: 20px;
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, 1);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;


}
.schedule_bottom{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    width: 65%;
    height: 78px;
    font-size: 18px;
    font-weight: 700;
    background-color: rgba(120, 78, 35, 1);
}
.schedule{
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 78px;
    text-align: center;
}
.schedule img{
    margin-right: 5px;
}
.schedule p{
    display: block;
    margin: 0;
    height: 20px;
    letter-spacing: 5px;
    font-size: 16px;
}
.ChargeSchedule img{
    width: 14.67px;
    height: 14.73px;
    
}
.ChargeSchedule {
    width: 343px;
    height: 78px ;
    margin-bottom: 2px !important;
    display: flex;
  
}
#PictureK{
width: 343px;
line-height: 40px;
}
.Picture img{
    width: 16px;
    height: 16px;
}
.button{
    display: flex;
    position: fixed;
    border: 1px solid rgba(120, 78, 35, 1);
    bottom: 10px;
}
.button div:nth-child(1){
    color: rgba(120, 78, 35, 1);
    background-color: rgb(255, 255, 255,0.6);
}
.button div:nth-child(2){
    color: #FFF;
    background: rgba(120, 78, 35, 0.7);

}
.button div{
font-size: 18px;
line-height: 80px;
text-align: center;
width: 187.5px;

}
.Text{
position: absolute;
bottom: 20px;
left: 20px;
color: #FFF;
}
.Location{
    margin-bottom: 20px !important;
    position: relative;
}

.Location,img{

    border-radius: 10px;
    background-color: rgba(255, 255, 255, 1);

}
.Profile div,img{
    width: 343px;
    margin: auto;
}
.Profile{
    width: 343px;
    margin: auto;
   
}
</style>
